package main.java.game.event;

import main.java.game.Game;

public class TaxCollector extends Event {

	public TaxCollector(String name, Boolean subscribed){
		super(name,subscribed);
		
	}
	public void takeEffect(Game game){
		super.takeEffect(game);
		if(game.getPlayer().getDeadMonsters().size()>=3){
			game.getPlayer().setGold(game.getPlayer().getGold()-50);
			System.out.println("You loose 50 gold coins!\n");
		}
		
		
	}
}
